<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	
	<body>
		<h3>保时捷718的属性</h3>
		<script>
			var car = new Object();//js定义对象，有很多属性
			
			var car = {
				name:"保时捷718",//多个属性使用逗号隔开
				type:"cayman t"
			};
			console.log(car);
			
			//js动态增加属性，java做不到（是静态语言）
			// car.name = "保时捷718";
			// car.type = "cayman t";
			car.color = "红色";
			car.price = 641000;
			console.log(car);
			
			
		</script>
	</body>
</html>
